<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddServiceImgToAssociators extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('associators', function (Blueprint $table) {
            //
            $table->string('img')->comment('暂存服务封面照')->after('hobby')->nullable();
            $table->string('avatar')->comment('暂存服务头像')->after('hobby')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('associators', function (Blueprint $table) {
            //
            $table->dropColumn(['avatar','img']);
        });
    }
}
